export default function getCurrentTime() {
    const now = new Date();

    // 获取小时、分钟和秒
    const hours = String(now.getHours()).padStart(2, '0');
    const minutes = String(now.getMinutes()).padStart(2, '0');
    const seconds = String(now.getSeconds()).padStart(2, '0');

    // 拼接成 HH:mm:ss 格式
    const timeString = `${hours}:${minutes}:${seconds}`;

    return timeString;
}
